import requset from "../utils/request"

/**
 * @description: 获取派单运行类型
 * @return {*}
 */
export const getOrderTypeAPI = (data: any) => {
    return requset('depend/getOrderType', 'GET', data)
}

/**
 * @description: 根据条件分页获取派单运行
 * @return {*}
 */
export const getOrderPageByParamsAPI = (data: any) => {
    return requset('depend/getOrderPageByParams', 'GET', data)
}

/**
 * @description: 回复派单运行
 * @return {*}
 */
export const replyOrderAPI = (data: any) => {
    return requset('depend/replyOrder', 'POST', data)
}

/**
 * @description: 更新派单运行是否公开
 * @return {*}
 */
export const updateOrderIsOpenAPI = (data: any) => {
    return requset('depend/updateOrderIsOpen', 'POST', data)
}

/**
 * @description: 删除派单
 * @return {*}
 */
export const deleteOrderAPI = (data: any) => {
    return requset(`depend/deleteOrder/${data.id}`, 'GET', data)
}